package com.example.demo.controller;


import com.example.demo.service.BosUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestRedisController {
    @Autowired
    private BosUserService bosUserService;

    @GetMapping(value = "/testRedis")
    public void testRedis() {
        //redis的使用总结
        bosUserService.testRedis();
    }

    @GetMapping(value = "/testRedis1")
    public void testRedis1() {
        //redis的使用总结
        bosUserService.testRedis1();
    }
}
